.class Lcom/noshufou/android/su/UpdaterFragment$Manifest;
.super Ljava/lang/Object;
.source "UpdaterFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/noshufou/android/su/UpdaterFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "Manifest"
.end annotation


# instance fields
.field public binaryMd5:Ljava/lang/String;

.field public binaryUrl:Ljava/lang/String;

.field public busyboxMd5:Ljava/lang/String;

.field public busyboxUrl:Ljava/lang/String;

.field final synthetic this$0:Lcom/noshufou/android/su/UpdaterFragment;

.field public version:Ljava/lang/String;

.field public versionCode:I


# direct methods
.method private constructor <init>(Lcom/noshufou/android/su/UpdaterFragment;)V
    .locals 0
    .parameter

    .prologue
    .line 60
    iput-object p1, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->this$0:Lcom/noshufou/android/su/UpdaterFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/noshufou/android/su/UpdaterFragment;Lcom/noshufou/android/su/UpdaterFragment$Manifest;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    invoke-direct {p0, p1}, Lcom/noshufou/android/su/UpdaterFragment$Manifest;-><init>(Lcom/noshufou/android/su/UpdaterFragment;)V

    return-void
.end method


# virtual methods
.method public populate(Lorg/json/JSONObject;)Z
    .locals 3
    .parameter "manifest"

    .prologue
    const/4 v1, 0x0

    .line 70
    :try_start_0
    const-string v2, "version"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->version:Ljava/lang/String;

    .line 71
    const-string v2, "version-code"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v2

    iput v2, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->versionCode:I

    .line 72
    const-string v2, "binary"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->binaryUrl:Ljava/lang/String;

    .line 73
    const-string v2, "binary-md5sum"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->binaryMd5:Ljava/lang/String;

    .line 74
    const-string v2, "busybox"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->busyboxUrl:Ljava/lang/String;

    .line 75
    const-string v2, "busybox-md5sum"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->busyboxMd5:Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 81
    iget-object v2, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->version:Ljava/lang/String;

    if-eqz v2, :cond_0

    iget v2, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->versionCode:I

    if-eqz v2, :cond_0

    .line 82
    iget-object v2, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->binaryUrl:Ljava/lang/String;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->binaryMd5:Ljava/lang/String;

    if-eqz v2, :cond_0

    .line 83
    iget-object v2, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->busyboxUrl:Ljava/lang/String;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/noshufou/android/su/UpdaterFragment$Manifest;->busyboxMd5:Ljava/lang/String;

    if-nez v2, :cond_1

    .line 86
    :cond_0
    :goto_0
    return v1

    .line 76
    :catch_0
    move-exception v0

    .line 77
    .local v0, e:Lorg/json/JSONException;
    goto :goto_0

    .line 86
    .end local v0           #e:Lorg/json/JSONException;
    :cond_1
    const/4 v1, 0x1

    goto :goto_0
.end method
